package support

import (
	"yuanchang/spider/util/store"
	"yuanchang/spider/http"
)

type RedisSchedule struct {
	Storage store.Store
}

func (rs *RedisSchedule) PushRequest(r *http.Request) {
	rs.Storage.Push(r)
}

func (rs *RedisSchedule) PopRequest() *http.Request {
	return rs.Storage.Pop()
}
